package com.example.myanimation.MyEvalutor;

import android.animation.TypeEvaluator;

/**
 * Created by zy on 2017/5/24.
 */

public class CharEvaluator implements TypeEvaluator<Character>{
    @Override
    public Character evaluate(float fraction, Character startValue, Character endValue) {
        int end = (int) endValue;
        int start = (int) startValue;
        return (char) ((int)(start+(end-start)*fraction));
    }
}
